package main

import (
	"fmt"
)

func main() {
	ch1 := make(chan int)
	ch2:=make(chan int)
	go func() {
		ch1<-100
		ch2<-200
	}()

	select {
	case num1:=<-ch1:
		fmt.Println("ch1接收到数据",num1)
	case num2:=<-ch2:
		fmt.Println("ch2接收到数据",num2)
	//case ch1 =<-time.After(3*time.Second)
	//default:
	//	fmt.Println("timeout")
	}
}
